<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app" >
        <divs :text.sync="msg"></divs>
    </div>

    <script>
        Vue.component('divs',{
            props:['text'],
            template:"<div @click=$emit('update:text',111)>{{text}}<div>"
        })

        new Vue({
            el:'#app',
            data:{
                msg:'hls'
            }
        })
    </script>
</body>
</html>